export default {
    path: '/projectList',
    component: require('./index').default,
    indexRoute: {
        getComponent(state, cb){
          require.ensure([], require => cb(null, require('./Home').default))
      } 
    },
    childRoutes: [
      {
        path: '/projectList',
        getComponent(state, cb){
          require.ensure([], require => cb(null, require('./Home').default))
        }
      },
      {
        path: '/projectList/DirectDetail/:id',
        getComponent(state, cb){
          require.ensure([], require => cb(null, require('./DirectDetail').default))
        }
      },
      {
        path: '/projectList/AssignmentDetail/:id',
        getComponent(state, cb){
          require.ensure([], require => cb(null, require('./AssignmentDetail').default))
        }
      },
      {
        path: 'Detail/payInfo',
        getComponent(state, cb){
          require.ensure([], require => cb(null, require('./PayInfo').default))
        }
      },
      {
        path: 'Detail/coupon',
        getComponent(state, cb){
          require.ensure([], require => cb(null, require('./Coupon').default))
        }
      },
      {
        path: 'Detail/loanContract', //借款合同
        getComponent(state, cb){
          require.ensure([], require => cb(null, require('./LoanContract').default))
        }
      },
      
      
      
    ]
  }